package com.shishuo.cms.entity;

import java.util.Date;
import java.util.Set;

public class UserEntity {

	private long id;

	private String userName;

	private String passWord;

	private Date createTime = new Date();

	private Date lastUpdate = new Date();

	private String qqOpenId;
	
	private String sinaOpenId;
	
	private String email;
	private String nickName;//用户昵称
	private String headImg;//用户头像
	
	/**
	 * 0:未激活,1:已激活(会员状态)
	 */
	private int status;

	private long roleId;

	private double userMoney;// 可用金额
	
	private double userGold;// 用户可用金币
	
	private String referUserName;//推荐人用户名
	
	private String centerUserName;//报单中心用户的用户名
	
	private String userRealName;//真实姓名
	private String bankName;//银行名称
	private String bankCard;//银行卡卡号
	private String vertifyCard;//身份证号
	private String phoneNum;//手机号码
	private String chargePassWord;//交易密码
	
	private double frozenMoney;//冻结资金

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public double getFrozenMoney() {
		return frozenMoney;
	}

	public void setFrozenMoney(double frozenMoney) {
		this.frozenMoney = frozenMoney;
	}

	public String getUserRealName() {
		return userRealName;
	}

	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getBankCard() {
		return bankCard;
	}

	public void setBankCard(String bankCard) {
		this.bankCard = bankCard;
	}

	public String getVertifyCard() {
		return vertifyCard;
	}

	public void setVertifyCard(String vertifyCard) {
		this.vertifyCard = vertifyCard;
	}

	public String getPhoneNum() {
		return phoneNum;
	}

	public void setPhoneNum(String phoneNum) {
		this.phoneNum = phoneNum;
	}

	public String getChargePassWord() {
		return chargePassWord;
	}

	public void setChargePassWord(String chargePassWord) {
		this.chargePassWord = chargePassWord;
	}

	public String getReferUserName() {
		return referUserName;
	}

	public void setReferUserName(String referUserName) {
		this.referUserName = referUserName;
	}

	public String getCenterUserName() {
		return centerUserName;
	}

	public void setCenterUserName(String centerUserName) {
		this.centerUserName = centerUserName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public double getUserMoney() {
		return userMoney;
	}

	public void setUserMoney(double userMoney) {
		this.userMoney = userMoney;
	}

	public double getUserGold() {
		return userGold;
	}

	public void setUserGold(double userGold) {
		this.userGold = userGold;
	}

	private UserRoleEntity userRoleEntity;

	public UserRoleEntity getUserRoleEntity() {
		return userRoleEntity;
	}

	public void setUserRoleEntity(UserRoleEntity userRoleEntity) {
		this.userRoleEntity = userRoleEntity;
	}

	

	public long getRoleId() {
		return roleId;
	}

	public void setRoleId(long roleId) {
		this.roleId = roleId;
	}

	public String getQqOpenId() {
		return qqOpenId;
	}

	public void setQqOpenId(String qqOpenId) {
		this.qqOpenId = qqOpenId;
	}

	public String getSinaOpenId() {
		return sinaOpenId;
	}

	public void setSinaOpenId(String sinaOpenId) {
		this.sinaOpenId = sinaOpenId;
	}

	/**
	 * 用户和角色的关系
	 */
	private Set<RoleEntity> roles;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassWord() {
		return passWord;
	}

	public void setPassWord(String passWord) {
		this.passWord = passWord;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Set<RoleEntity> getRoles() {
		return roles;
	}

	public void setRoles(Set<RoleEntity> roles) {
		this.roles = roles;
	}

}